from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, SubmitField
from wtforms.validators import DataRequired

class UserEditForm(FlaskForm):
    name = StringField('姓名', validators=[DataRequired()])
    role = SelectField('角色', choices=[('member', '成员'), ('admin', '管理员')])
    submit = SubmitField('保存')